import { httpTokenRequest } from '../utils/http.js';


// 获取小竹资讯列表页面
export function getList(params) {
  return httpTokenRequest({
    url: '/api/imformation/getList',
    method: 'POST',
    params: params
  });
}


//获取分类
export function searchList(params) {
  return httpTokenRequest({
    url: '/api/Index/searchlist',
    method: 'POST',
    params: params
  });
}

// 获取热门搜索
export function hotSearch(params) {
  return httpTokenRequest({
    url: '/api/Index/getHotSearch',
    method: 'POST',
    params: params
  });
}


// 获取历史搜索
export function getHistorySearch(params) {
  return httpTokenRequest({
    url: '/api/imformation/getHistorySearch',
    method: 'POST',
    params: params
  });
}

// 新搜索
export function newConsultSearch(params) {
  return httpTokenRequest({
    url: '/api/Index/new_xungetsearch',
    method: 'POST',
    params: params
  });
}